﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Site.Master" AutoEventWireup="true"
    CodeBehind="WFVisualizarCliente.aspx.cs" Inherits="s2b.ControleDesenvolvimentoProjetos.Paginas.WFVisualizarCliente" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:SqlDataSource ID="DSCliente" runat="server" ConnectionString="<%$ ConnectionStrings:CS_DB_Controle_Projeto %>"
        DeleteCommand="DELETE FROM CLIENTE
WHERE ID_CLIENTE = @ID_CLIENTE" SelectCommand="SELECT * FROM CLIENTE">
        <DeleteParameters>
            <asp:Parameter Name="ID_CLIENTE" />
        </DeleteParameters>
    </asp:SqlDataSource>
    <asp:GridView ID="gdvCliente" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" Width="100%"
        DataKeyNames="ID_CLIENTE" DataSourceID="DSCliente" 
        onrowcommand="gdvCliente_RowCommand" BackColor="White" 
        BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" 
        ForeColor="Black" GridLines="Vertical" style="text-align: left">
        <AlternatingRowStyle BackColor="#CCCCCC" />
        <Columns>
            <asp:BoundField DataField="ID_CLIENTE" HeaderText="Id cliente" Visible="False"
                ReadOnly="True" SortExpression="codigo" />
            <asp:BoundField DataField="RAZAO_SOCIAL" HeaderText="Nome" 
                SortExpression="nome" />
            <asp:ButtonField ButtonType="Image" CommandName="Delete" ImageUrl="~/Util/Imagens/delete.png"
                Text="Remover"></asp:ButtonField>
                <asp:ButtonField ButtonType="Image" CommandName="Edit"  ImageUrl="~/Util/Imagens/edit.png"
                Text="Editar"></asp:ButtonField>
                <asp:ButtonField ButtonType="Image" CommandName="View"  ImageUrl="~/Util/Imagens/view.png"
                Text="Visualizar"></asp:ButtonField>
            <asp:TemplateField></asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#CCCCCC" />
        <HeaderStyle BackColor="#000040" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#999999" ForeColor="#000040" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#808080" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#383838" />
    </asp:GridView>
</asp:Content>
